/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2019-11-30 15:49:43
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 礼品兑换单查询
export const queryGiftExchange = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftExchange/queryGiftExchange`, {
  params
});

// 礼品兑换单明细查询
export const queryGiftExchangeDetail = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftExchange/queryGiftExchangeDetail`, {
  params
});

// 查询会员卡信息
export const queryGiftHandlerServiceInfo = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftExchange/queryGiftHandlerServiceInfo`, {
  params
});

// 保存礼品兑换单
export const saveGiftExchange = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftExchange/saveGiftExchange`, params);


// 保存礼品兑换单明细
export const saveGiftExchangeDetail = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftExchange/saveGiftExchangeDetail`, params);

// 删除礼品兑换单
export const deleteGiftExchange = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftExchange/deleteGiftExchange`, {
  params
});

// 执行入库
export const executeGiftStorage = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftExchange/executeGiftStorage`, params);

// 礼品兑换单查询
export const getGiftPage = params => axios.get(`${SERVER.MEMBERS_CLUB}/clbGiftStorage/queryGiftStorageByCondition`, {
  params
});
